num = sample(1:50, 10, replace = TRUE)
count <- 0
i <- 1
while (i <= length(num)) {
  if (num[i] > 10) {
    count <- count + 1
  }
  i <- i + 1
}
print(count)
